﻿<%@ Page Title="Admin Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" Inherits="WHM3.AdminPage.Admin" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <hgroup class="title">
        <h1><%: Title %>.</h1>
    </hgroup>
        <section id="loginForm"> 
            <asp:Label ID="HelloArgs" runat="server"/>  
            
            <p>
                <asp:Button ID="Button8" runat="server"  Text="Make Coffee" OnClick="makeCoffe" Width="164px" />
            </p>
                  
            <p>            
                <asp:Button ID="Button6" runat="server" CommandName="deleteEmployee" Text="Delete employee" OnClick="deleteEmployeeFunction" Width="164px" />
            </p>
            <p>            
                <asp:Button ID="Button2" runat="server" CommandName="editEmployee" Text="edit employee" OnClick="editEmployeeFunction" Width="164px" />
            </p>

            <p>
                <asp:Button ID="Button1" runat="server" CommandName="addNewEmployee" Text="add new employee" OnClick="addNewEmployeeFunction" Width="164px" />
            </p>      

                        <p>
                <asp:Button ID="Button7" runat="server" CommandName="ReportsSystem" Text="Reports System" OnClick="ReportsSystem" Width="164px" />
            </p>
                        <p><asp:button id="backButton" runat="server" Width="164px" text="Back To Prev Page" OnClientClick="JavaScript:window.history.back(1);return false;" BackColor="WhiteSmoke"/></p>

        </section>

        <section id="socialLoginForm">  
                  
             <div runat="server" id="deleteEmployeeDiv" visible="false">               
                <p>
                    <asp:Label id="deleteEmployeeMSG" runat="server" ForeColor="Red" Font-Size="Medium"/>
                </p>
                 <p>
                    <asp:Label id="Label13" runat="server" Text=" enter employee id to delete"/>
                </p>
                <p>
                    <asp:TextBox runat="server" ID="deleteEmployeeTextBox"/>
                </p>
                <p>
                        <asp:Button ID="deleteEmployeeButton" runat="server" CommandName="delete" Text="delete" OnClick="delete" />        
                </p>
             </div>

            <div runat="server" id="EmployeeToEdit" visible="false">
                <asp:Label id="Label3" runat="server" ForeColor="Red" Font-Size="Medium"/>
                <asp:Label ID="employeeToEditLabel" runat="server">enter employee ID:</asp:Label>
                <asp:TextBox runat="server" ID="employeeToEditTextBox"/>
                <asp:Button ID="Button4" runat="server" CommandName="edit" Text="Edit" OnClick="edit" />                
            </div>

            <div runat="server" id="editEmployee" visible="false">
                <p>
                    <asp:Label id="Label2" runat="server" ForeColor="Red" Font-Size="Medium" />
                </p>
                <p>
                    ID: 
                    <asp:Label id="Label1" runat="server" />
                </p>
                <p>
                    First Name:<br /> 
                    <asp:TextBox runat="server" ID="FirstNameTextBox"/>
                </p>
                <p>
                    Last Name:<br /> 
                    <asp:TextBox runat="server" ID="LastNameTextBox"/>
                </p>
                <p>
                    Position:<br /> 
                    <asp:TextBox runat="server" ID="PositionTextBox"/>
                </p>
                <p>
                    Password:<br />  
                    <asp:TextBox runat="server" ID="PasswordTextBox"/>
                </p>
                <p>
                    Manager Of:<br />  
                    <asp:TextBox runat="server" ID="managerOfTextBox"/>
                </p>
                <p>
                    Team:<br />  
                    <asp:TextBox runat="server" ID="TeamTextBox"/>
                </p>

                <p>
                    Min Hours:<br />  
                    <asp:TextBox runat="server" ID="minHoursTextBox"/>
                </p>

                <p>
                    <asp:CheckBox runat="server" ID="AdminCheckBox" />
                    Admin
                </p>
                <p>
                    <asp:CheckBox runat="server" ID="ManagerCheckBox" />
                    Manager
                </p>
                <p>
                    <asp:Button ID="Button5" runat="server" CommandName="update" Text="update" OnClick="updateEmployee" />                
                </p>                
            </div>
           
            <div runat="server" id="addNewEmployee" visible="false">
                <p>
                    <asp:Label id="msgLabel" runat="server" ForeColor="Red" Font-Size="Medium"/>
                </p>
                <p>
                    <asp:Label id="Label14" runat="server" Text="Add new employee"/>
                </p>
                <p>
                    <asp:Label ID="Label4" runat="server" AssociatedControlID="ID">ID</asp:Label>
                    <asp:TextBox runat="server" ID="ID" />                    
                </p>                    
                <p>
                    <asp:Label ID="Label5" runat="server" AssociatedControlID="firstName">First Name</asp:Label>
                    <asp:TextBox runat="server" ID="firstName" />
                </p>    
                <p>
                    <asp:Label ID="Label6" runat="server" AssociatedControlID="lastName">Last Name</asp:Label>
                    <asp:TextBox runat="server" ID="lastName" />                  
                </p>            
                <p>
                    <asp:Label ID="Label7" runat="server" AssociatedControlID="Position">Position</asp:Label>
                    <asp:TextBox runat="server" ID="Position" />
                        
                </p>            
                <p>
                    <asp:Label ID="Label8" runat="server" AssociatedControlID="Team">Team</asp:Label>
                    <asp:TextBox runat="server" ID="Team" />                   
                </p> 
                <p>
                    <asp:Label ID="Label12" runat="server" AssociatedControlID="managerOf">Manager of</asp:Label>
                    <asp:TextBox runat="server" ID="managerOf" />                   
                </p> 
                <p>
                    <asp:Label ID="Label11" runat="server" AssociatedControlID="Team">Min Hours</asp:Label>
                    <asp:TextBox runat="server" ID="minHour" />                   
                </p> 
                      
                <p>
                    <asp:CheckBox runat="server" ID="isManager" />
                    <asp:Label ID="Label9" runat="server" AssociatedControlID="isManager" CssClass="checkbox">is Manager?</asp:Label>                        
                </p>         
                <p>
                    <asp:CheckBox runat="server" ID="isAdmin" />
                    <asp:Label ID="Label10" runat="server" AssociatedControlID="isAdmin" CssClass="checkbox">is Admin?</asp:Label>                      
                </p>           
                <p>
                    <asp:Button ID="Button3" runat="server" CommandName="Login" Text="Add To DB" OnClick="addToDB" />
                </p>                   
            </div>
        </section>

</asp:Content>